<template>
  <!-- 详细信息 -->
  <div id="quoteDetail">
    <el-form :model="form" label-width="100">
      <el-form-item label="产品名称:">
        <p>{{ form.name }}</p>
      </el-form-item>
      <el-form-item label="产品图片:" style="width: 100%">
        <other-files ref="otherFiles" :files="form.vendorUrlList"></other-files>
      </el-form-item>
      <el-form-item label="规格型号:">
        <p>{{ form.specification }}</p>
      </el-form-item>
      <el-form-item label="材质:">
        <p>{{ form.material }}</p>
      </el-form-item>
      <el-form-item label="产品单价:">
        <p>{{ form.onePrice ?? 0 }}元</p>
      </el-form-item>
      <el-form-item label="产品单位:">
        <p>{{ form.unitName }}</p>
      </el-form-item>
      <el-form-item label="备注:">
        <p>{{ form.remark }}</p>
      </el-form-item>
      <el-form-item label="创建时间:">
        <p>{{ form.createTime }}</p>
      </el-form-item>
      <el-form-item label="拆解件列表:" style="width: 100%">
        <el-table :data="form.productsDismantleList" style="width: 100%" border>
          <el-table-column
            label="拆解件名称"
            prop="name"
            min-width="200"
          ></el-table-column>
          <el-table-column
            label="拆解比例"
            prop="proportion"
            width="300"
          ></el-table-column>
          <el-table-column label="图片" min-width="200">
            <template #default="scope">
              <el-image
                style="width: 60px; height: 60px"
                :src="scope.row.images[0]"
                :preview-src-list="scope.row.images"
                preview-teleported
                :z-index="9999"
                v-if="scope.row.images[0]"
              />
            </template>
          </el-table-column>
        </el-table>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
import otherFiles from '@/components/otherFiles'
export default {
  name: 'vendorProductDetail',
  data () {
    return {

    }
  },
  components: {
    otherFiles,
  },
  props: {
    form: {
      type: Object,
      required: true,
      default: () => {
        return {}
      }
    }
  },

  methods: {



  }
}

</script>
<style lang='scss' scoped>
</style>